package com.five.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author keibdye
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("轮播图实体类")
public class Carousel {

    @ApiModelProperty("唯一id")
    private Long id;

    @ApiModelProperty("图片播放顺序")
    private Integer sequence;

    @ApiModelProperty("图片地址")
    private String imgUrl;

    @ApiModelProperty("图片名称")
    private String imgName;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}
